package com.hisense.hiioc.hismartplate.service;

import com.hisense.hiioc.hismartplate.base.BaseService;
import com.hisense.hiioc.hismartplate.entity.table.TestEntity;
import com.hisense.hiioc.hismartplate.mapper.TestMapper;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @Author: almo
 * @Date: 2018/12/5 下午12:48
 * @Version 1.0
 */
@Service
public class TestService extends BaseService<TestEntity, TestMapper> {

    public List<TestEntity> selectTestByName(String name) {
        return mapper.selectTestByName(name);
    }

    public int saveTest(TestEntity entity) {
        int res=mapper.saveTest(entity);
        return res;
    }
}
